package models

import "time"

type FirstLoan struct {
	ID           int       `json:"id" xorm:"notnull pk autoincr int id comment('id')"`
	MyLoanId     int       `json:"myLoanId" xorm:"notnull unique int my_loan_id comment('银保监主键id')"`
	Receipt      string    `json:"receipt" xorm:"notnull  Varchar(100) receipt comment('借据号明文')" `
	ReceiptHash  string    `json:"ReceiptHash" xorm:"notnull index Varchar(200) receipt_hash comment('借据号hash')" `
	LoanBankId   string    `json:"loanBankId" xorm:"notnull default '' Varchar(200) loan_bank_id comment('放贷行bankId, 详情中的bankId')" `
	ParentBankId string    `json:"parentBankId" xorm:"notnull default '' Varchar(200) parent_bank_id comment('放贷总行bankId)')" `
	LoanDate     string    `json:"loanDate" xorm:"notnull default '' Varchar(200) loan_date comment('放贷date')" `
	LoanTime     string    `json:"loanTime" xorm:"notnull default '' Varchar(200) loan_time comment('放贷time')" `
	UpchainTime  string    `json:"upchainTime" xorm:"notnull default '' Varchar(200) upchain_time comment('详情中的upchainTime')" `
	Date         time.Time `json:"date" xorm:"notnull default CURRENT_TIMESTAMP timestamp comment('解析区块交易，收到转账数据的日期')"`
	Created      time.Time `json:"created" xorm:"notnull default CURRENT_TIMESTAMP timestamp comment('解析区块交易，收到转账数据的日期')"`
}
